package com.easy.sso.exception;

import com.easy.common.exception.ExceptionEnum;

/**
 * @Author: CoolPro
 * @Description: 登录异常
 * @Time: 2024-04-19 19:30
 **/

public class LoginException extends RuntimeException{
    ExceptionEnum exception;
    public LoginException() {
    }

    public LoginException(ExceptionEnum ex) {
        super(ex.getMessage());
        this.exception = ex;
    }

    public ExceptionEnum getException() {
        return exception;
    }

    public void setException(ExceptionEnum exception) {
        this.exception = exception;
    }
}
